PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


GetThemeStandaloneGrowBoxBounds

Obtains the bounds of a size box.

pascal OSStatus GetThemeStandaloneGrowBoxBounds (
                     Point origin,
                     ThemeGrowDirection growDirection,
                     Boolean isSmall,
                     Rect *bounds);
origin
A structure of type Point . Pass the origin point of the size box rectangle. For example, the origin point of the size box for an object that can grow downward and to the right is the size box's upper-left corner. Typically, you use the coordinates of the corner of whatever object owns the size box for the origin value; for instance, if you are drawing a scrolling list that can grow downward and to the right, the origin value would be the coordinates of the bottom-right corner of the list.
growDirection
A value of type ThemeGrowDirection . For a size box, pass a constant specifying the direction(s) in which the window can grow. See Theme Size Box Direction Constants for descriptions of possible values. The Appearance Manager uses the growDirection parameter to establish which corner of the size box is the origin.
isSmall
A value of type Boolean . Pass a value of true to specify a small size box or fill image. Pass false to specify a large size box or fill image.
bounds
A pointer to a structure of type Rect . On return, the rectangle contains the boundary of the size box or fill image.
function result
A result code; see Result Codes .
DISCUSSION

The GetThemeStandaloneGrowBoxBounds function obtains the bounds of a size box under the current theme. Note that you can also use GetThemeStandaloneGrowBoxBounds to obtain the bounds of the fill image drawn by the function DrawThemeStandaloneNoGrowBox .

VERSION NOTES

Available with Appearance Manager 1.1 and later.


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)